package com.putao.album.child.bean;

import com.putao.album.R;
import com.putao.album.base.BaseItem;

/**
 * Created by chen on 15-5-13.
 */
public class RelationItem extends BaseItem {


    /**
     * 关系的Id
     */
    private String id;
    /**
     * 关系的名字
     */
    private String name;
    /**
     * 关系标签
     */
    private String tag;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static class Tag {
        public static final String MATHER = "MATHER";
        public static final String FATHER = "FATHER";
        public static final String WAIGONG = "WAIGONG";
        public static final String WAIPO = "WAIPO";
        public static final String YEYE = "YEYE";
        public static final String NAINAI = "NAINAI";

        public static int getResIdByTag(String tag) {
            if (RelationItem.Tag.MATHER.equals(tag)) {
                return R.drawable.baby_icon_mom;
            } else if (RelationItem.Tag.FATHER.equals(tag)) {
                return R.drawable.baby_icon_dad;
            } else if (RelationItem.Tag.WAIGONG.equals(tag)) {
                return R.drawable.baby_icon_grandpa;
            } else if (RelationItem.Tag.WAIPO.equals(tag)) {
                return R.drawable.baby_icon_grandma;
            } else if (RelationItem.Tag.YEYE.equals(tag)) {
                return R.drawable.baby_icon_grandfather;
            } else if (RelationItem.Tag.NAINAI.equals(tag)) {
                return R.drawable.baby_icon_grandmother;
            } else {
                return R.drawable.baby_icon_other;
            }
        }
    }

}
